package com.tianhui.consignortwofei.other;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fgs
 * @date 2020/3/27
 **/
public enum EventWhat {
    EVENT_REFRESH_ORDER_INFO,
    EVENT_REFRESH_PHONE,
    EVENT_REFRESH_CARRIER_MANAGE_VIEW,
    EVENT_REFRESH_STATISTICS_VIEW,
    EVENT_REFRESH_CARRIER_LIST,
    EVENT_REFRESH_CONSIGNOR_INFO,
    EVENT_REFRESH_MESSAGE_POINT,
    EVENT_REFRESH_ORDER_LIST,
    EVENT_REFRESH_DRIVER_LIST,
    EVENT_REFRESH_VEHICLE_LIST,
    EVENT_REFRESH_ORDER_OPERATE,
    EVENT_REFRESH_ORDER_DETAIL,
    EVENT_LOGIN_STATUS,
    EVENT_OPERATE_ACTIVITY_FINISH,
    EVENT_ACTIVITY_FINISH,
    EVENT_REFRESH_SEND_SUCCESS,
    EVENT_MOVE_TO_MINE,
    EVENT_MOVE_TO_JISUAN,
    CHANGE_TAB_FRAGMENT,
    EVENT_MOVE_TO_YUNDAN,
    EVENT_REFRESH_BAOJIA_LIST,
    EVENT_REFRESH_UFJIAN_LIST,
    EVENT_REFRESH_HUIKUAN_LIST,
    EVENT_REFRESH_CONTRACT_LIST,
    EVENT_REFRESH_TAITOU_LIST,
    EVENT_REFRESH_DUIXIANG_LIST,
    ;

    private static Map<Integer, EventWhat> mMap = new HashMap<>();

    static {
        for (EventWhat eventWhat : values()) {
            mMap.put(eventWhat.ordinal(), eventWhat);
        }
    }

    public int getValue() {
        return this.ordinal();
    }

    public static EventWhat valueOf(int value) {
        return mMap.get(value);
    }

}
